<?
	include("common.php");

	$query = "SELECT * FROM users WHERE uid='$uid'";
	$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
	if ( ($result) && (mysql_num_rows($result) > 0) ){
		$row = mysql_fetch_object($result);
	}
	include("pop_header.php");
?>
<table cellpadding=0 cellspacing=0 width=90% style="border:1px solid #000000;">
<tr>
	<TD width=50% style="padding-left:10px;padding-right:10px;"><br>
		<table cellpadding=0 cellspacing=0 width=100% style="border:1px solid #000000;">
		<TR>
			<td style="padding-left:10px;border-bottom:1px solid #000000;border-right:1px solid #000000" class=small width=40%><FONT face=arial size=3><B>Username:</B></FONT></TD>
			<td style="padding-left:10px;border-bottom:1px solid #000000;" class=small ><FONT face=arial size=3><?=$row->username?></FONT></TD>
		</TR>
<?	if($loggedin){	?>
		<TR>
			<td style="padding-left:10px;border-bottom:1px solid #000000;border-right:1px solid #000000" class=small width=40%><FONT face=arial size=3><B>Email Address:</B></FONT></TD>
			<td style="padding-left:10px;border-bottom:1px solid #000000;" class=small ><FONT face=arial size=3><?=$row->email?></FONT></TD>
		</TR>
<?	}	?>
		<TR>
			<td style="padding-left:10px;border-bottom:1px solid #000000;border-right:1px solid #000000" class=small width=40%><FONT face=arial size=3><B>Location:</B></FONT></TD>
			<td style="padding-left:10px;border-bottom:1px solid #000000;" class=small ><FONT face=arial size=3><?=$row->address?></FONT></TD>
		</TR>
		<TR>
			<td style="padding-left:10px;border-bottom:1px solid #000000;border-right:1px solid #000000" class=small width=40%><FONT face=arial size=3><B>Web Site:</B></FONT></TD>
			<td style="padding-left:10px;border-bottom:1px solid #000000;" class=small ><FONT face=arial size=3><?=$row->homepage?></FONT></TD>
		</TR>
		<TR>
			<td style="padding-left:10px;border-bottom:1px solid #000000;border-right:1px solid #000000" class=small width=40%><FONT face=arial size=3><B>Ocupation:</B></FONT></TD>
			<td style="padding-left:10px;border-bottom:1px solid #000000;" class=small ><FONT face=arial size=3><?=$row->ocupation?></FONT></TD>
		</TR>
		</TABLE><BR>
		<br>
	</TD>
	<TD width=50% style="padding-left:10px;padding-right:10px;"><br>
		<table cellpadding=0 cellspacing=0 width=100% style="border:1px solid #000000;">
		<TR>
			<td style="padding-left:10px;border-bottom:1px solid #000000;border-right:1px solid #000000" class=small width=40%><FONT face=arial size=3><B>Member Since:</B></FONT></TD>
			<td style="padding-left:10px;border-bottom:1px solid #000000;" class=small ><FONT face=arial size=3><?=strftime("%m/%d/%Y @ %I:%M %p",$row->joined)?></FONT></TD>
		</TR>
		<TR>
			<td style="padding-left:10px;border-bottom:1px solid #000000;border-right:1px solid #000000" class=small width=40%><FONT face=arial size=3><B>ICQ Number:</B></FONT></TD>
			<td style="padding-left:10px;border-bottom:1px solid #000000;" class=small ><FONT face=arial size=3><?=($row->icq? $row->icq : "&nbsp;")?></FONT></TD>
		</TR>
		<TR>
			<td style="padding-left:10px;border-bottom:1px solid #000000;border-right:1px solid #000000" class=small width=40%><FONT face=arial size=3><B>AOL Messenger:</B></FONT></TD>
			<td style="padding-left:10px;border-bottom:1px solid #000000;" class=small ><FONT face=arial size=3><?=($row->aol? $row->aol : "&nbsp;")?></FONT></TD>
		</TR>
		<TR>
			<td style="padding-left:10px;border-bottom:1px solid #000000;border-right:1px solid #000000" class=small width=40%><FONT face=arial size=3><B>Yahoo Messenger:</B></FONT></TD>
			<td style="padding-left:10px;border-bottom:1px solid #000000;" class=small ><FONT face=arial size=3><?=($row->yahoo? $row->yahoo : "&nbsp;")?></FONT></TD>
		</TR>
		<TR>
			<td style="padding-left:10px;border-bottom:1px solid #000000;border-right:1px solid #000000" class=small width=40%><FONT face=arial size=3><B>MSN Messenger:</B></FONT></TD>
			<td style="padding-left:10px;border-bottom:1px solid #000000;" class=small ><FONT face=arial size=3><?=($row->msn? $row->msn : "&nbsp;")?></FONT></TD>
		</TR>
		</TABLE><BR>
		<br>
	</TD>
</TR>
<?	if($loggedin){	?>
<TR>
	<td align=center colspan=2 style="padding:10px;border-bottom:1px solid #000000;" class=small ><FONT face=arial size=3><a href="sendmsg.php?uid=<?=$row->uid?>"><font size="1">[send pm]</font></a><br></TD>
</TR>
<?	}	?>
</TABLE><BR>
<Br>
<BR><FONT face=arial size=3>
<?
	include("pop_footer.php");
?>